const validate = require("../utils/validate");
const Joi = require("joi");
const { tableQuery } = require("./common");


exports.findSchema = validate({
  query: {
    name: Joi.optional(),
    featured: Joi.optional(),
    rating: Joi.optional(),
    company: Joi.optional(),
    ...tableQuery
  },
});
